<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
    <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<form action="findPerLikeName" method="post">
		<input name="name"><input type="submit" value="搜索">
	</form>
	<table border="1">
		<tr>
			<th>id</th>
			<th>姓名</th>
			<th>年龄</th>
			<th>性别</th>
			<th>爱好</th>
			<th>生日</th>
		</tr>
		<c:forEach items="${list}" var="per">
			<tr>
				<td>${per.id}</td>
				<td>${per.name}</td>
				<td>${per.age}</td>
				<td>${per.sex}</td>
				<td>${per.hobby}</td>
				<td>${per.birthday}</td>
				<td>
				<fmt:formatDate value="${per.birthday}" pattern="YYYY-MM-dd HH:mm:ss"/>
				</td>
			</tr>
		</c:forEach>
	</table>
</body>
</html>